<?php


class WSB_View_Helper_FormSelectCsvFegroups extends WSB_View_Helper_FormSelectCsv
{

	public function formSelectCsvFegroups($name, $value = null, $attribs = null, $listsep = "<br />\n")
	{
        $info = $this->_getInfo($name, $value, $attribs, null, $listsep);
        extract($info); // name, id, value, attribs, options, listsep, disable

		$table = new Member_Model_DbTable_Fegroup();
		$where = $table->getAdapter()->quoteInto('deleted=?', 0);
		$options = $table->fetchPairs('id', 'name', $where);
		$attribs['multiple'] = 'multiple';
		$options[-2] = 'Nach Anmeldung verbergen (1. Prioritaet)';
		$options[-1] = 'Anzeigen, wenn angemeldet (2. Prioritaet)';
		ksort($options);
		return $this->formSelectCsv($name, $value, $attribs, $options);

    }

}